@extends('layouts.admin')

@section('title','店铺编辑')

@section('content')
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Data Tables
        <small>advanced tables</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li><a href="#">Tables</a></li>
        <li class="active">Data tables</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
		<div class="box box-primary">
			<div class="box-header with-border">
				<h3 class="box-title">Quick Example</h3>
			</div>
			<!-- /.box-header -->
			<!-- form start -->
			<form role="form" action="{{ route('admin.shops.update') }}" method="POST">
				{{csrf_field()}}
				<div class="box-body">
					<div class="form-group">
					  <label>名称</label>
					  <input type="text" class="form-control" id="name" name="name" value="{{ $shop->name or '' }}" placeholder="店铺名称">
					</div>
					<div class="form-group">
					  <label>子域名</label>
					  <input type="text" class="form-control" id="subdomain" name="subdomain" value="{{ $shop->subdomain or '' }}" placeholder="例如：www.xxx.com">
					  <input type="hidden" name="id" value="{{ $shop->id or '' }}">
					</div>
				</div>
					<!-- /.box-body -->

				<div class="box-footer">
					<button type="submit" class="btn btn-primary btn-submit" data-check="">提交</button>
				</div>
			</form>
		</div>
    </section>
@stop